/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_flow_interface_rela.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_FLOW_INTERFACE_RELA
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_flow_interface_rela.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_FLOW_INTERFACE_RELA::CTable_PPM_FLOW_INTERFACE_RELA( )
 :NPCRecordSet( )
{
  setTableName( "PPM_FLOW_INTERFACE_RELA" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EVENT.setField( "EVENT", DATA_CHAR, 20, 0 );
  makeTableItem( EVENT );
  SYS_ID.setField( "SYS_ID", DATA_CHAR, 20, 0 );
  makeTableItem( SYS_ID );
  FLOW_ID.setField( "FLOW_ID", DATA_CHAR, 20, 0 );
  makeTableItem( FLOW_ID );
  OPERATE_ID.setField( "OPERATE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( OPERATE_ID );
  EVENT_ID.setField( "EVENT_ID", DATA_CHAR, 20, 0 );
  makeTableItem( EVENT_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
}


CTable_PPM_FLOW_INTERFACE_RELA::CTable_PPM_FLOW_INTERFACE_RELA( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_FLOW_INTERFACE_RELA" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EVENT.setField( "EVENT", DATA_CHAR, 20, 0 );
  makeTableItem( EVENT );
  SYS_ID.setField( "SYS_ID", DATA_CHAR, 20, 0 );
  makeTableItem( SYS_ID );
  FLOW_ID.setField( "FLOW_ID", DATA_CHAR, 20, 0 );
  makeTableItem( FLOW_ID );
  OPERATE_ID.setField( "OPERATE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( OPERATE_ID );
  EVENT_ID.setField( "EVENT_ID", DATA_CHAR, 20, 0 );
  makeTableItem( EVENT_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
}

CTable_PPM_FLOW_INTERFACE_RELA::~CTable_PPM_FLOW_INTERFACE_RELA( )
{
    close();
}

